package com.xms.web.view.security;

import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 * PermissionViewController
 * </p>
 *
 * @author migo
 * @since 2021/9/24
 */
@Controller
@RequestMapping("{org}/security/")
public class PermissionViewController {
    private static final String MODULE_PATH = "security";

    @ApiOperation("编辑权限项")
    @RequestMapping("privilegeresources")
    public String privilegeresources()
    {
        return MODULE_PATH + "/privilegeresources";
    }

    @ApiOperation("编辑角色权限")
    @RequestMapping("editrolepermission")
    public String editrolepermission()
    {
        return MODULE_PATH + "/editrolepermission";
    }

    @ApiOperation("编辑角色实体权限")
    @RequestMapping("editroleentitypermission")
    public String editroleentitypermission()
    {
        return MODULE_PATH + "/editroleentitypermission";
    }

    @ApiOperation("编辑角色字段权限")
    @RequestMapping("editrolefieldpermission")
    public String editrolefieldpermission()
    {
        return MODULE_PATH + "/editrolefieldpermission";
    }

    @ApiOperation("编辑角色按钮权限")
    @RequestMapping("editrolebuttonpermission")
    public String editrolebuttonpermission()
    {
        return MODULE_PATH + "/editrolebuttonpermission";
    }

    @ApiOperation("编辑数据角色权限")
    @RequestMapping("assignobjectroles")
    public String assignobjectroles()
    {
        return MODULE_PATH + "/assignobjectroles";
    }
}
